package com.leyou.dao;

import com.leyou.domain.db1entity.Email;
import com.leyou.domain.db1entity.Manager;
import com.leyou.domain.db1entity.ManagerExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface ManagerMapper {
    long countByExample(ManagerExample example);

    int deleteByExample(ManagerExample example);

    int deleteByPrimaryKey(String managerkey);

    int insert(Manager record);

    int insertSelective(Manager record);

    List<Manager> selectByExample(ManagerExample example);

    Manager selectByPrimaryKey(String managerkey);

    int updateByExampleSelective(@Param("record") Manager record, @Param("example") ManagerExample example);

    int updateByExample(@Param("record") Manager record, @Param("example") ManagerExample example);

    int updateByPrimaryKeySelective(Manager record);

    int updateByPrimaryKey(Manager record);

    int insertEmailLog(Email email);

    int checkEmail(Email email);

    int insertManager(Manager manager);

    int selectManager(Manager manager);

    int updateManagerTicket(Manager manager);

    Manager getManagerByTicket(String ticket);

    int updateManager(Manager manager);
}